/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.webanovare.bb;

import com.webanovare.model.NewsRegistry;
import com.webanovare.model.db.News;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ApplicationScoped;
import javax.faces.bean.ManagedBean;

/**
 *
 * @author Richard
 */
@ManagedBean(name = "newsBean")
@ApplicationScoped
public class NewsBB implements Serializable {
    @EJB
    NewsRegistry reg;
    
    public NewsBB() {}
    
    public List<News> getNewsItems() {
        return reg.getAll();
    } 
}
